package com.example.exampleproject.entity;

import com.example.exampleproject.utils.SexEnum;

import java.io.Serializable;

public class UserEntity implements Serializable {
    private  Integer id;
    private  String name;
    private  Integer age;
    private   SexEnum sex;
//    private  String sex;
    private  Integer deptId;
    private  String remark;

    public SexEnum getSex() {
        return sex;

    }

    public void setSex(SexEnum sex) {
        this.sex = sex;
    }


//    public String getSex() {
//        return sex;
//    }
//
//    public void setSex(String sex) {
//        this.sex = sex;
//    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "UserEntity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                ", deptId=" + deptId +
                ", remark='" + remark + '\'' +
                '}';
    }
}
